const logo = `  
  <svg
    t="1726186258645"
    class="icon"
    viewBox="0 0 1024 1024"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    p-id="2338"
    style="width: 20px; height: 20px"
  >
    <path
      d="M241.995818 2.347569l19.408502-0.159413c21.225808-0.159413 42.451616-0.24709 63.669455-0.326796l22.022872-0.103618c38.49021-0.159413 76.980419-0.278972 115.470628-0.350708 39.614069-0.087677 79.228139-0.366649 118.850179-0.677504 30.575366-0.215207 61.150733-0.278972 91.726099-0.302885 14.586267-0.039853 29.188475-0.135501 43.782713-0.278972 90.458767-0.8688 159.635932 2.287573 237.796006 52.430855 50.74905 54.280043 70.404643 116.570577 70.659703 189.446117l0.159413 19.408503c0.159413 21.225808 0.24709 42.451616 0.326796 63.669454l0.103618 22.022872c0.159413 38.49021 0.278972 76.980419 0.350708 115.470629 0.087677 39.614069 0.366649 79.228139 0.677505 118.850179 0.215207 30.575366 0.278972 61.150733 0.302884 91.726099 0.039853 14.586267 0.135501 29.188475 0.278972 43.782713 0.8688 90.458767-2.287573 159.635932-52.430855 237.796005-54.280043 50.74905-116.570577 70.404643-189.446117 70.659704l-19.408503 0.159413c-21.225808 0.159413-42.451616 0.24709-63.669454 0.326796l-22.022872 0.103618c-38.49021 0.159413-76.980419 0.278972-115.470629 0.350708-39.614069 0.087677-79.228139 0.366649-118.850179 0.677504-30.575366 0.215207-61.150733 0.278972-91.726098 0.302885-14.586267 0.039853-29.188475 0.135501-43.782713 0.278972-90.458767 0.8688-159.635932-2.287573-237.803977-52.430855-50.74108-54.280043-70.396672-116.570577-70.651733-189.446117l-0.159412-19.408503c-0.159413-21.225808-0.24709-42.451616-0.326796-63.669454l-0.103619-22.022872c-0.159413-38.49021-0.278972-76.980419-0.350708-115.470629-0.087677-39.614069-0.366649-79.228139-0.677504-118.850179-0.215207-30.575366-0.278972-61.150733-0.302884-91.726099a5821.291493 5821.291493 0 0 0-0.278973-43.782713c-0.8688-90.458767 2.287573-159.635932 52.430855-237.803976C106.829743 22.258222 169.120277 2.602629 241.995818 2.347569z"
      fill="#FEDE58"
      p-id="2339"
    ></path>
    <path
      d="M564.663174 265.298907C593.556736 266.789417 593.556736 266.789417 617.468649 282.730692c2.574516 15.534773 2.574516 15.534773 1.984688 34.736039l-0.494179 21.759841-0.900682 23.521352-0.637651 24.055385c-0.701416 25.426334-1.570216 50.844698-2.446986 76.263062-0.50215 17.208607-0.99633 34.417214-1.474568 51.62582-1.203566 42.24438-2.550604 84.480789-4.00126 126.717198l15.718098-0.38259c23.489469-0.49418 46.970968-0.805034 70.460437-1.115889l24.740859-0.605769 23.74453-0.231148 21.879401-0.382591C784.852041 641.409389 784.852041 641.409389 799.478161 652.201633 808.763954 665.321303 808.763954 665.321303 806.771295 686.244227 800.793316 705.174491 800.793316 705.174491 792.822678 713.145129c-15.359419 0.693445-30.74275 0.852858-46.110139 0.781122l-28.25591-0.079706-29.754391-0.207237-29.842068-0.103618C634.446107 713.440043 610.008132 713.304542 585.586098 713.145129l-3.49114 15.447096C577.61546 745.02768 577.61546 745.02768 569.644822 752.998318c-20.388891 1.0043-40.562575 1.506451-60.959437 1.618039l-18.563615 0.135501c-12.984169 0.079706-25.968338 0.12753-38.952507 0.159413-19.87877 0.079706-39.7416 0.318826-59.62037 0.581856-12.593608 0.047824-25.195186 0.087677-37.796764 0.11956l-18.037553 0.302884c-41.032843-0.183325-41.032843-0.183325-60.847848-13.701526-11.158893-18.085377-9.795914-32.169494-8.106139-52.980829l14.944946-1.49848L298.64314 681.262578c5.659153-13.143582 10.919774-26.462517 15.941275-39.853189a1187.545314 1187.545314 0 0 1 20.516422-37.422144l12.075516-21.170013 12.737079-22.110549 12.960257-22.596758C402.580256 486.603664 433.091857 435.870555 466.026532 386.348982l-14.37903-0.478238c-21.441015-0.757211-42.882031-1.633981-64.331017-2.510751-7.468488-0.239119-14.936975-0.49418-22.636612-0.74924l-21.640281-0.932564-19.982389-0.757211C306.613778 378.378345 306.613778 378.378345 290.672502 362.437069c-1.49848-24.414063-1.49848-24.414063 0-47.823826 7.970638-7.970638 7.970638-7.970638 29.36383-8.87929l28.208086 0.12753 30.431895 0.079706 32.049935 0.207237A30038.703252 30038.703252 0 0 1 521.820996 306.642605l3.483169-15.447096c7.404722-27.132051 9.37347-24.238709 39.359009-25.904572z"
      fill="#EA6058"
      p-id="2340"
    ></path>
    <path
      d="M565.165324 264.796757C593.556736 266.789417 593.556736 266.789417 617.468649 282.730692c2.574516 15.534773 2.574516 15.534773 1.984688 34.736039l-0.494179 21.759841-0.900682 23.521352-0.637651 24.055385c-0.701416 25.426334-1.570216 50.844698-2.446986 76.263062-0.50215 17.208607-0.99633 34.417214-1.474568 51.62582-1.203566 42.24438-2.550604 84.480789-4.00126 126.717198l15.718098-0.38259c23.489469-0.49418 46.970968-0.805034 70.460437-1.115889l24.740859-0.605769 23.74453-0.231148 21.879401-0.382591C784.852041 641.409389 784.852041 641.409389 799.478161 652.201633 808.763954 665.321303 808.763954 665.321303 806.771295 686.244227 800.793316 705.174491 800.793316 705.174491 792.822678 713.145129c-19.328796 0.900682-38.418474 1.307185-57.75524 1.339067l-17.543374 0.079706c-12.274782 0.039853-24.533623 0.055794-36.808405 0.055795-18.810705 0.015941-37.605469 0.159413-56.416174 0.318825-11.892191 0.023912-23.792354 0.039853-35.692516 0.039854l-17.112959 0.175354C531.62488 714.978376 531.62488 714.978376 513.850358 697.203854c-1.936865-17.543374-1.936865-17.543374-1.833246-39.606099l0.023912-24.98795 0.318825-27.068285 0.183325-27.697966c0.661563-67.830127 2.136131-135.644313 4.296173-203.450528l0.74127-27.068286 0.940535-24.987949 0.757211-22.062725c4.511381-31.149252 15.710127-33.285383 45.87899-35.477309z"
      fill="#7E98F3"
      p-id="2341"
    ></path>
    <path
      d="M505.879721 497.937911h7.970637v183.324667H402.26143c11.198746-28.00085 21.042484-49.967928 36.393932-75.131231l11.724808-19.225178 12.163193-19.727329 12.250871-20.189625c22.37358-36.489579 22.37358-36.489579 31.085487-49.051304z"
      fill="#D8BD4A"
      p-id="2342"
    ></path>
    <path
      d="M497.909083 250.848141c26.900902-0.99633 26.900902-0.99633 55.794464 0l15.941275 15.941276-19.432414 6.480128L529.791634 282.730692l-7.970638 23.911913H322.555053l7.970638-23.911913h159.412754l7.970638-31.882551z"
      fill="#D0B647"
      p-id="2343"
    ></path>
    <path
      d="M505.879721 497.937911c9.293764 29.268182 9.293764 29.268182-2.61437 52.773592l-15.319565 22.453286-15.064506 22.381551L458.055894 617.497476a3001.55884 3001.55884 0 0 0-23.911913 39.853189h79.706377v23.911913H402.26143c11.278452-28.192146 21.082337-49.928075 36.680875-75.131231l11.828426-19.225178 12.266812-19.727329 12.458107-20.189625C485.594448 530.625496 495.717158 514.277718 505.879721 497.937911z"
      fill="#CBA946"
      p-id="2344"
    ></path>
    <path
      d="M473.99717 577.644288h7.970637v79.706377h-47.823826c10.62486-28.614589 23.067026-54.168454 39.853189-79.706377z"
      fill="#F6D754"
      p-id="2345"
    ></path>
    <path
      d="M497.909083 250.848141c26.900902-0.99633 26.900902-0.99633 55.794464 0l15.941275 15.941276c-27.960997 12.784903-48.971598 17.694816-79.706377 15.941275l7.970638-31.882551z"
      fill="#DBC04F"
      p-id="2346"
    ></path>
  </svg>`

const getMessage = (message) => {
  return `
    <el-row style="display: flex; align-items: center">
      <el-row>
        ${message}
      </el-row>
      <el-row style="display: flex; align-items: center; padding-left:10px">
        ${logo}
      </el-row>
    </el-row>
`
}

const ZlMessage = {
  success: (message) => {
    ElMessage({
      dangerouslyUseHTMLString: true,
      message: `
      <el-row style="display: flex; align-items: center">
    <el-row>
      
      ${message}
    </el-row>
    <el-row style="display: flex; align-items: center; padding-left:10px">
      ${logo}
    </el-row>
  </el-row>`,
      type: 'success'
    })
  },
  info: (message) => {
    ElMessage({
      dangerouslyUseHTMLString: true,
      message: getMessage(message),
      type: 'info'
    })
  },
  warning: (message) => {
    ElMessage({
      dangerouslyUseHTMLString: true,
      message: getMessage(message),
      type: 'warning'
    })
  },
  error: (message) => {
    ElMessage({
      dangerouslyUseHTMLString: true,
      message: getMessage(message),
      type: 'error'
    })
  }
}

export { ZlMessage }
